package com.mindtree.vi.dbaccess.manager.user;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Required;

import com.mindtree.vi.dbaccess.datatypes.user.User;
import com.mindtree.vi.dbaccess.manager.TableManager;

public class UserTableManager implements TableManager<User> {

	private TableManager<User> tableManager;

	@Required
	public void setTableManager(TableManager<User> tableManager) {
		this.tableManager = tableManager;
	}

	public User delete(long id) {
		return null;
	}

	public User find(Class<? extends User> clazz, long id) {
		return (User) tableManager.find(clazz, id);
	}

	public User save(User id) {
		return (User) tableManager.save(id);
	}

	public User update(User id) {
		return (User) tableManager.update(id);
	}

	public List<? extends User> findAll() {
		return tableManager.findAll();
	}

	public List<User> find(String query, Map<String, Object> parameterMap) {
		return tableManager.find(query, parameterMap);
	}

	public List<? extends User> find(String query) {
		return tableManager.find(query);
	}

}
